package com.atguigu.gmall.product.mapper;


import com.atguigu.gmall.model.product.BaseAttrInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
* @author Zenglingxiao
* @description 针对表【base_attr_info(属性表)】的数据库操作Mapper
* @createDate 2022-03-04 18:11:06
* @Entity com.atguigu.gmall.product.domain.BaseAttrInfo
*/
@Mapper
public interface BaseAttrInfoMapper extends BaseMapper<BaseAttrInfo> {

    /**
     * 根据id 获取属性
     * @param category1Id
     * @param category2Id
     * @param category3Id
     * @return
     */
    List<BaseAttrInfo> getAttrInfoAndValueList(@Param("category1Id") Long category1Id,
                                               @Param("category2Id") Long category2Id,
                                               @Param("category3Id") Long category3Id);
}




